home *** CD-ROM | disk | FTP | other *** search
/ PC Elektro 3 / PC-Elektro-3-cd1.bin / KBan 2.0 / KBANSRC.LZH / SRC / PROG / VIEW / APTCMN.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-23  |  1.3 KB  |  46 lines

  1. // the declaration of class CAptCommonDialog
  2. // Copyright (C) 1997 Kazutaka Hirata <khirata@jove.acs.unt.edu>
  3.  
  4. #ifndef _APTCMN_H_
  5. #define _APTCMN_H_
  6.  
  7. #include "../resource.h"
  8.  
  9. #include "../kbandata/apttable.h"
  10.  
  11. class CAptCommonDialog : public CDialog {
  12. public:
  13.   CAptCommonDialog::CAptCommonDialog(
  14.     CWnd* pParentWnd                 ,
  15.     uint  nID                        ,
  16.     const APT_TABLE& apt_table       ,
  17.     const APT_TABLE& apt_table_purged,
  18.     const APERTURE&  prev
  19.   );
  20.  
  21. protected:
  22.   APT_TABLE        m_apt_table;
  23.   const APT_TABLE& m_apt_table_purged;
  24.   APERTURE         m_prev;
  25.   APERTURE         m_aperture;
  26.   int              m_index;
  27.  
  28.   CListBox&        ctlExisting(void);
  29.   void             SetTextInt(CEdit* pEdit, int value);
  30.   virtual void     SetAll(const APERTURE& apt) = 0;
  31.   int              unit_change_micron2kban(int micron);
  32.   void             DeleteAllItems(void);
  33.   virtual void     AddAperture(const APERTURE& apt) = 0;
  34.   void             RegisterAllItems(void);
  35.   afx_msg void     OnSelChange(void);
  36.   afx_msg void     OnDblClk(void);
  37.   afx_msg void     OnPurge(void);
  38.  
  39. public:
  40.   const APT_TABLE& apt_table(void) const { return m_apt_table; }
  41.   const APERTURE&  aperture (void) const { return m_aperture ; }
  42.   DECLARE_MESSAGE_MAP()
  43. };
  44.  
  45. #endif /* _APTCMN_H_ */
  46.